package com.gxsyh.nantie.order.provider.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * @email yom535@outlook.com
 * @author: 刘锋嘉(Liu Fengjia)
 * @date: 2020/2/21
 * @time: 14:29
 * @Description: 
 */
@Data
@Table(name = "tb_order")
public class TbOrder implements Serializable {
    /**
     * 订单ID
     */
    @Id
    @Column(name = "id")
    private Long id;

    /**
     * 消费金额
     */
    @Column(name = "amount_consumption")
    private Double amountConsumption;

    /**
     * 消费时间
     */
    @Column(name = "createTime")
    private Date createtime;

    /**
     * 订单状态:1是等待2是准备3是完成
     */
    @Column(name = "order_status")
    private Integer orderStatus;

    /**
     * 支付状态:0是未支付1是支付完成
     */
    @Column(name = "pay_status")
    private Integer payStatus;

    /**
     * 支付方式:AliPay是支付宝、WechatPay是微信支付
     */
    @Column(name = "pay_method")
    private String payMethod;

    /**
     * 在哪个公寓生成的订单
     */
    @Column(name = "pay_department_id")
    private Long payDepartmentId;

    /**
     * 补贴金额
     */
    @Column(name = "subsidy")
    private Double subsidy;

    /**
     * 订单编号
     */
    @Column(name = "order_num")
    private String orderNum;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /**
     * 餐别
     */
    @Column(name = "meal")
    private String meal;

    private static final long serialVersionUID = 1L;
}